package org.dromara.demo.domain.bo;

import org.dromara.demo.domain.JsCaseVar;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用例变量业务对象 js_case_var
 *
 * @author zhu
 * @date 2025-02-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JsCaseVar.class, reverseConvertGenerate = false)
public class JsCaseVarBo extends BaseEntity {

    /**
     * case变量id
     */
    @NotNull(message = "case变量id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用例名称
     */
    @NotBlank(message = "用例名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String exampleLocation;

    /**
     * case变量名称
     */
    @NotBlank(message = "case变量名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String varName;

    /**
     * case变量值
     */
    @NotBlank(message = "case变量值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String value;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mark;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createdTime;


}
